package com.sysd.mapper;

import com.sysd.bean.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sysd.bean.response.UserResponse;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bsh
 * @since 2025-06-03
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 用手机号码去查找用户信息
     * @param phone 手机号码
     * @return 用户信息
     */
    UserResponse toLogin(String phone);
}
